<include file="Public:header" />
<style>
	.header{display:none;}
	.w790{margin-top:0px;}
</style>
<script>
$(document).ready(function(e) {
    $('.showcurimg').each(function(index, element) {
        $(this).click(function(e) {
            $(this).find('img.img').show();
        });
		$(this).mouseleave(function(e) {
            $(this).find('img.img').hide();
        });
    });
});
</script>	
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <div class="h"><a href="{:U('Field/add',array('formId'=>$formId))}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>添加字段</a> </div>
    
    <div class="table_">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <thead>
          <tr>
            <td align="center">ID</td>
            <td align="center">字段名称</td>
            <td align="center">字段类型</td>
            <td align="center">字段长度</td>
            <td align="center">验证规则</td>
            <td align="center">操作</td>
          </tr>
        </thead>
        <volist name="list" id="vo">
          <tr class="data_list">
            <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" />
              {$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.type}</td>
            <td align="center">{$vo.length}</td>
            <td align="center">{$vo.verify}</td>
            <td align="center"><a href="{:U('Field/getField',array('id'=>$vo['id']))}">预览/编辑字段</a> | 
            <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');">删除</a></td>
          </tr>
        </volist>
      </table>
      <div class="pages">
        <div class="controlList fl"><a href="javascript:void(0);" class="mybutton" onclick="sall();">全选/反选</a> <a href="javascript:void(0);" class="mybutton" onclick="rall();">全不选</a> <a class="mybutton" href="javascript:void(0);" onclick="delall();">删除选中</a> <a href="javascript:void(0);" class="mybutton" onclick="update_sort('id','sort','','{:U('dosort')}');">更新排序</a> 
       <!-- <select name="category_id" id="movepid">
          <option value="0">请选择栏目</option>
          <volist name="pid_list" id="vo">
            <option value="{$vo.id}">{$vo.title}</option>
            <volist name="vo['sub']" id="svo">
               <option value="{$svo.id}">{:getdeepstr($svo['deep'])}{$svo.title}</option>
            </volist>
          </volist>
        </select>&nbsp;<button type="button" onclick="movenews(document.getElementById('movepid'));" class="mybutton">移动到分类</button>-->
        </div>
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
          每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />